package com.xbongbong.pro.enums.businessrule.enums;

import lombok.Getter;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2020/7/2 10:03
 * @since v1.0
 */
@Getter
public enum  BusinessRuleConsumerEnum {

    /**
     * 执行结果，成功/失败
     */
    FAILED(0, "enum.consumer.memo.failed", "enum.consumer.tip.failed"),

    SUCCESS(1, "enum.consumer.memo.success", "enum.consumer.tip.success"),
    ;

    private Integer type;

    private String memo;
    /**
     * 用于显示在前台的执行日志中
     */
    private String tip;

    BusinessRuleConsumerEnum(Integer type, String memo, String tip) {
        this.type = type;
        this.memo = memo;
        this.tip = tip;
    }
}
